package org.jinxing.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/i")
public class IndexController {
	protected static String className = IndexController.class.getName();
	protected static Log logger = LogFactory.getLog(className);//日志对象
	
	@RequestMapping("/main")
	public String main(HttpServletRequest request,HttpServletResponse response){
		logger.info("<|>"+className+"<|>index<|><|><|>");
		return "/i/main";
	}
	@RequestMapping("/index")
	public String index(HttpServletRequest request,HttpServletResponse response){
		logger.info("<|>"+className+"<|>index<|><|><|>");
		return "/i/index";
	}
}
